<?php

require_once BASE_PATH.'application/models/basedao'.EXT;

class consejoscaractsdao extends baseDAO {
	
	var $table = 'consejo_caracteristica';
	
	var $sql   = '';

	function __construct()
	{
	    parent::__construct();
	}
	function _defaultSQL()
	{
		$this->db->select('id_consejo, id_caracteristica');
	}
	
    function getCharcs($ids_consejos)
    {
        $this->_defaultSQL();
        $this->db->where_in('id_consejo', $ids_consejos);
	    $query = $this->db->get($this->table);
	    return $query->result_array();
    }
    
    function get_idcaracteristica($id_consejo)
    {
        $this->db->select('id_caracteristica');
        $this->db->where('id_consejo', $id_consejo);
	$this->db->limit(1);
	    $query = $this->db->get($this->table);
	    return $query->result_array();
    }
}

?>